package com.example.spring.test.thread;

/**
 * Created by Administrator on 2017-8-10.
 */
public class KeyPersonThread extends Thread {

    public void run() {
        System.out.println(Thread.currentThread().getName() + " 突然杀入战场！！");
        for(int i = 0; i < 10; i++){
            System.out.println(Thread.currentThread().getName() + " 开始了第【"+i+"】次进攻敌人");
        }
        System.out.println(Thread.currentThread().getName() + " 英勇的结束了战斗");
    }
}
